[INFO] cloning repository https://github.com/bookinstock/rust_example
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bookinstock/rust_example" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbookinstock%2Frust_example", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbookinstock%2Frust_example'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] c83d144f2d500cd60a59da5019b4bc5ca7d2d36f
[INFO] checking bookinstock/rust_example against master#d4be8efc6296bace5b1e165f1b34d3c6da76aa8e for pr-110141
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbookinstock%2Frust_example" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/bookinstock/rust_example on toolchain d4be8efc6296bace5b1e165f1b34d3c6da76aa8e
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d4be8efc6296bace5b1e165f1b34d3c6da76aa8e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/bookinstock/rust_example
[INFO] finished tweaking git repo https://github.com/bookinstock/rust_example
[INFO] tweaked toml for git repo https://github.com/bookinstock/rust_example written to /workspace/builds/worker-4-tc1/source/Cargo.toml
[INFO] crate git repo https://github.com/bookinstock/rust_example already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d4be8efc6296bace5b1e165f1b34d3c6da76aa8e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:97d61d7686bf65f8ecb15491ab51835e82dc9176a96a831f143a431b191fc501" "/opt/rustwide/cargo-home/bin/cargo" "+d4be8efc6296bace5b1e165f1b34d3c6da76aa8e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 6ab11c96f58bcfadefba87796241c1d7440bca833e3ba0345ad34255e871d022
[INFO] running `Command { std: "docker" "start" "-a" "6ab11c96f58bcfadefba87796241c1d7440bca833e3ba0345ad34255e871d022", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "6ab11c96f58bcfadefba87796241c1d7440bca833e3ba0345ad34255e871d022", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6ab11c96f58bcfadefba87796241c1d7440bca833e3ba0345ad34255e871d022", kill_on_drop: false }`
[INFO] [stdout] 6ab11c96f58bcfadefba87796241c1d7440bca833e3ba0345ad34255e871d022
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:97d61d7686bf65f8ecb15491ab51835e82dc9176a96a831f143a431b191fc501" "/opt/rustwide/cargo-home/bin/cargo" "+d4be8efc6296bace5b1e165f1b34d3c6da76aa8e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 022f978a3d10f66ece10cf4ef626d0d470f00089429d9c0a0d846d349f9bfdba
[INFO] running `Command { std: "docker" "start" "-a" "022f978a3d10f66ece10cf4ef626d0d470f00089429d9c0a0d846d349f9bfdba", kill_on_drop: false }`
[INFO] [stderr]     Checking rust_example v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0601]: `main` function not found in crate `std`
[INFO] [stdout]   --> src/bin/std.rs:64:4
[INFO] [stdout]    |
[INFO] [stdout] 64 | */
[INFO] [stdout]    |    ^ consider adding a `main` function to `src/bin/std.rs`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0601`.
[INFO] [stdout] 
[INFO] [stdout] error[E0601]: `main` function not found in crate `test`
[INFO] [stdout]   --> src/bin/test.rs:13:4
[INFO] [stdout]    |
[INFO] [stdout] 13 | */
[INFO] [stdout]    |    ^ consider adding a `main` function to `src/bin/test.rs`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0601`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust_example` (bin "std") due to 2 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `rust_example` (bin "test") due to 2 previous errors
[INFO] [stdout] error[E0601]: `main` function not found in crate `error`
[INFO] [stdout]   --> src/bin/error.rs:41:4
[INFO] [stdout]    |
[INFO] [stdout] 41 | */
[INFO] [stdout]    |    ^ consider adding a `main` function to `src/bin/error.rs`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0601`.
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_literal` is never used
[INFO] [stdout]    --> src/bin/pattern_matching.rs:113:4
[INFO] [stdout]     |
[INFO] [stdout] 113 | fn test_literal() {}
[INFO] [stdout]     |    ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_array` is never used
[INFO] [stdout]    --> src/bin/pattern_matching.rs:115:4
[INFO] [stdout]     |
[INFO] [stdout] 115 | fn test_array() {}
[INFO] [stdout]     |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_enum` is never used
[INFO] [stdout]    --> src/bin/pattern_matching.rs:117:4
[INFO] [stdout]     |
[INFO] [stdout] 117 | fn test_enum() {}
[INFO] [stdout]     |    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_stuct` is never used
[INFO] [stdout]    --> src/bin/pattern_matching.rs:119:4
[INFO] [stdout]     |
[INFO] [stdout] 119 | fn test_stuct() {}
[INFO] [stdout]     |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_variable` is never used
[INFO] [stdout]    --> src/bin/pattern_matching.rs:137:4
[INFO] [stdout]     |
[INFO] [stdout] 137 | fn test_variable() {}
[INFO] [stdout]     |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_wildcard` is never used
[INFO] [stdout]    --> src/bin/pattern_matching.rs:139:4
[INFO] [stdout]     |
[INFO] [stdout] 139 | fn test_wildcard() {}
[INFO] [stdout]     |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_placeholder` is never used
[INFO] [stdout]    --> src/bin/pattern_matching.rs:141:4
[INFO] [stdout]     |
[INFO] [stdout] 141 | fn test_placeholder() {}
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 7 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust_example` (bin "error") due to 2 previous errors
[INFO] [stdout] warning: function `ttt` is never used
[INFO] [stdout]    --> src/bin/hello.rs:107:4
[INFO] [stdout]     |
[INFO] [stdout] 107 | fn ttt() {
[INFO] [stdout]     |    ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `f` is never used
[INFO] [stdout]    --> src/bin/hello.rs:120:4
[INFO] [stdout]     |
[INFO] [stdout] 120 | fn f() {
[INFO] [stdout]     |    ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test` is never used
[INFO] [stdout]    --> src/bin/hello.rs:124:4
[INFO] [stdout]     |
[INFO] [stdout] 124 | fn test() {
[INFO] [stdout]     |    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `try_debug_trait` is never used
[INFO] [stdout]    --> src/bin/hello.rs:159:4
[INFO] [stdout]     |
[INFO] [stdout] 159 | fn try_debug_trait() {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `red`, `green`, and `blue` are never read
[INFO] [stdout]    --> src/bin/hello.rs:243:9
[INFO] [stdout]     |
[INFO] [stdout] 242 |     struct Color {
[INFO] [stdout]     |            ----- fields in this struct
[INFO] [stdout] 243 |         red: u8,
[INFO] [stdout]     |         ^^^
[INFO] [stdout] 244 |         green: u8,
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout] 245 |         blue: u8,
[INFO] [stdout]     |         ^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Color` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `s`
[INFO] [stdout]    --> src/bin/generic.rs:217:9
[INFO] [stdout]     |
[INFO] [stdout] 217 |     let s = S(1);
[INFO] [stdout]     |         ^ help: if this is intentional, prefix it with an underscore: `_s`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 5 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `x` and `y` are never read
[INFO] [stdout]   --> src/bin/generic.rs:44:5
[INFO] [stdout]    |
[INFO] [stdout] 43 | struct A {
[INFO] [stdout]    |        - fields in this struct
[INFO] [stdout] 44 |     x: i32,
[INFO] [stdout]    |     ^
[INFO] [stdout] 45 |     y: i32,
[INFO] [stdout]    |     ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `A` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `S` is never constructed
[INFO] [stdout]    --> src/bin/generic.rs:135:12
[INFO] [stdout]     |
[INFO] [stdout] 135 |     struct S; // 具体类型 `S`
[INFO] [stdout]     |            ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `GenericVal` is never constructed
[INFO] [stdout]    --> src/bin/generic.rs:136:12
[INFO] [stdout]     |
[INFO] [stdout] 136 |     struct GenericVal<T>(T); // 泛型类型 `GenericVal`
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `printer` is never used
[INFO] [stdout]    --> src/bin/generic.rs:210:8
[INFO] [stdout]     |
[INFO] [stdout] 210 |     fn printer<T: Display>(t: T) {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 5 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "022f978a3d10f66ece10cf4ef626d0d470f00089429d9c0a0d846d349f9bfdba", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "022f978a3d10f66ece10cf4ef626d0d470f00089429d9c0a0d846d349f9bfdba", kill_on_drop: false }`
[INFO] [stdout] 022f978a3d10f66ece10cf4ef626d0d470f00089429d9c0a0d846d349f9bfdba
